package br.com.DoceMagia.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Color;
import javax.swing.JLabel;
import java.awt.Font;
import javax.swing.ImageIcon;
import javax.swing.border.TitledBorder;
import javax.swing.JTextField;
import javax.swing.JFormattedTextField;
import javax.swing.JSeparator;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.SwingConstants;

public class Profissional extends JFrame {

	private JPanel contentPane;
	private JTextField txtNameProfissional;
	private JTextField txtEnderecoProfissional;
	private JTextField txtFixoProfissional;
	private JTextField textField;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Profissional frame = new Profissional();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public Profissional() {
		setResizable(false);
		setTitle("Cadastro de Profissional - Agenda Doce Magia - v2.0");
		setBounds(100, 100, 550, 420);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JPanel panel = new JPanel();
		panel.setBackground(Color.WHITE);
		panel.setBounds(0, 0, 544, 32);
		contentPane.add(panel);
		panel.setLayout(null);
		
		JLabel lblProfissional = new JLabel("Profissional");
		lblProfissional.setIcon(new ImageIcon("C:\\workspace\\estudo\\AgendaDoceMagiaView\\imagens\\editarProfissional32x32.png"));
		lblProfissional.setBounds(0, 0, 163, 30);
		lblProfissional.setFont(new Font("Calibri", Font.BOLD | Font.ITALIC, 24));
		panel.add(lblProfissional);
		
		JPanel panel_1 = new JPanel();
		panel_1.setBorder(new TitledBorder(null, "", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel_1.setBounds(0, 33, 544, 359);
		contentPane.add(panel_1);
		panel_1.setLayout(null);
		
		JLabel lblNome = new JLabel("Nome: ");
		lblNome.setBounds(14, 22, 55, 16);
		panel_1.add(lblNome);
		
		txtNameProfissional = new JTextField();
		txtNameProfissional.setToolTipText("Nome do Profissional.");
		txtNameProfissional.setBounds(78, 16, 450, 28);
		panel_1.add(txtNameProfissional);
		txtNameProfissional.setColumns(10);
		
		JLabel lblEndereo = new JLabel("Endere\u00E7o: ");
		lblEndereo.setBounds(14, 49, 66, 16);
		panel_1.add(lblEndereo);
		
		txtEnderecoProfissional = new JTextField();
		txtEnderecoProfissional.setToolTipText("Endere\u00E7o do profissional.");
		txtEnderecoProfissional.setBounds(78, 43, 450, 28);
		panel_1.add(txtEnderecoProfissional);
		txtEnderecoProfissional.setColumns(10);
		
		JLabel lblCelular = new JLabel("Celular: ");
		lblCelular.setBounds(14, 77, 55, 16);
		panel_1.add(lblCelular);
		
		JFormattedTextField txtCelularProfissional = new JFormattedTextField();
		txtCelularProfissional.setToolTipText("Celular do Profissional.");
		txtCelularProfissional.setBounds(78, 71, 180, 28);
		panel_1.add(txtCelularProfissional);
		
		JLabel lblTelFixo = new JLabel("Tel. Fixo:");
		lblTelFixo.setBounds(283, 77, 55, 16);
		panel_1.add(lblTelFixo);
		
		txtFixoProfissional = new JTextField();
		txtFixoProfissional.setBounds(348, 71, 180, 28);
		panel_1.add(txtFixoProfissional);
		txtFixoProfissional.setColumns(10);
		
		JLabel lblEmail = new JLabel("Email: ");
		lblEmail.setBounds(14, 104, 55, 16);
		panel_1.add(lblEmail);
		
		textField = new JTextField();
		textField.setBounds(78, 98, 450, 28);
		panel_1.add(textField);
		textField.setColumns(10);
		
		JSeparator separator = new JSeparator();
		separator.setBounds(1, 132, 531, 13);
		panel_1.add(separator);
		
		JLabel lblServioPrestado = new JLabel("Servi\u00E7o Prestado:");
		lblServioPrestado.setBounds(14, 156, 106, 16);
		panel_1.add(lblServioPrestado);
		
		JComboBox cbxServiceProfissional = new JComboBox();
		cbxServiceProfissional.setModel(new DefaultComboBoxModel(new String[] {"--Selecione o servi\u00E7o--", "ANIMADOR", "COPEIRA", "DJ", "FRITADEIRA", "GAR\u00C7OM", "MONITOR", "SEGURAN\u00C7A"}));
		cbxServiceProfissional.setBounds(117, 151, 411, 26);
		panel_1.add(cbxServiceProfissional);
		
		JLabel lblValorCobrado = new JLabel("Valor Cobrado: ");
		lblValorCobrado.setBounds(14, 184, 90, 16);
		panel_1.add(lblValorCobrado);
		
		JFormattedTextField frmtdtxtfldR = new JFormattedTextField();
		frmtdtxtfldR.setText("R$");
		frmtdtxtfldR.setToolTipText("Valor cobrado pelo servi\u00E7o prestado.");
		frmtdtxtfldR.setBounds(117, 178, 141, 28);
		panel_1.add(frmtdtxtfldR);
		
		JButton btnNovoCadastro = new JButton("Novo Cadastro");
		btnNovoCadastro.setHorizontalAlignment(SwingConstants.LEFT);
		btnNovoCadastro.setIcon(new ImageIcon("C:\\workspace\\estudo\\AgendaDoceMagiaView\\imagens\\NovoProfissional.png"));
		btnNovoCadastro.setBounds(14, 293, 146, 39);
		panel_1.add(btnNovoCadastro);
		
		JButton btnSalvar = new JButton("    Salvar ");
		btnSalvar.setHorizontalAlignment(SwingConstants.LEFT);
		btnSalvar.setIcon(new ImageIcon("C:\\workspace\\estudo\\AgendaDoceMagiaView\\imagens\\salvarProfissional.png"));
		btnSalvar.setBounds(214, 293, 128, 39);
		panel_1.add(btnSalvar);
		
		JButton btnCancelar = new JButton("Cancelar");
		btnCancelar.setIcon(new ImageIcon("C:\\workspace\\estudo\\AgendaDoceMagiaView\\imagens\\cancelarProfissional32x32.png"));
		btnCancelar.setBounds(400, 293, 128, 39);
		panel_1.add(btnCancelar);
	}
}
